package com.example.fourm.services;

import com.example.fourm.model.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {
    @Transactional
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectAllByBoardId(Long id);

    //查看id的文章具体内容
    Article selectDetailById(Long id);

    Article selectById(Long id);

    //对文章的编辑（更新操作）
    void modify(Long id,String title,String content);

    //点赞功能
    void thumbsUpById(Long id);

    @Transactional
    void deleteById(Long id);

    void addOneReplyCountById(Long id);

    List<Article> selectByUserId(Long userId);

}
